package com.service.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.MusicListTypeDao;
import com.entity.MusicListType;
import com.service.MusicListTypeService;

@Service
public class MusicListTypeServiceImpl implements MusicListTypeService{

	@Autowired
	private MusicListTypeDao musicListTypeDao;
	@Override
	public List<Map<String, Object>> queryMusicListType() {
		// TODO Auto-generated method stub
		return musicListTypeDao.queryMusicListType();
	}

	@Override
	public Map<String, Object> queryMusicListTypeId(int musicListTypeId) {
		// TODO Auto-generated method stub
		return musicListTypeDao.queryMusicListTypeId(musicListTypeId);
	}

	@Override
	public int addMusicListType(MusicListType musicListType) {
		// TODO Auto-generated method stub
		return musicListTypeDao.addMusicListType(musicListType);
	}

	@Override
	public int editMusicListType(MusicListType musicListType) {
		// TODO Auto-generated method stub
		return musicListTypeDao.editMusicListType(musicListType);
	}

	@Override
	public int del(int musicListTypeId) {
		// TODO Auto-generated method stub
		return musicListTypeDao.delMusicListType(musicListTypeId);
	}

}
